Repository navigation
Feat/dmj gaps 4 - #57
Merged
Merged
Conversation
…ible Mounted hidden (an inactive tab, a closed accordion, a popover before it opens) the textarea measured scrollHeight 0 and stayed one line high, also after it became visible. - A measurement of 0 sets no height: the rows stay until it is visible - A ResizeObserver measures again when the textarea gets a width and whenever the width changes (the text wraps differently) - Story "Textarea in Tabs" (Vue, React) and a browser test: the textarea in a tab that was hidden when it mounted is as high as its four lines - React Native measures with onContentSizeChange and has no such case Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
With lazyMount alone the panel selected on mount was removed when its tab was left - only unmountOnExit should do that. Ark's Vue presence sets "was ever present" in a watcher without immediate, so it never knows the panel that is present from the start (React computes it on render and is right). Form fields in such a panel were not mounted on submit, so their errors stayed hidden. - Vue TabsContent mounts the panels itself with Ark's rules: never selected + lazyMount -> not rendered; selected once and left -> kept (hidden), removed only with unmountOnExit - Behaviour test for lazyMount, lazyMount + unmountOnExit and neither, Vue and React; red for Vue lazyMount without the fix Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
The banner's tints are translucent: the content shows through while the page scrolls, and on a tinted page background it is hard to see. position="top" is fixed and covers the top bar instead of taking space. - solid: opaque fill in the colour of the variant with its on-colour for text and icon (neutral: bg-fg text-bg); the close button takes the text colour for its hover and focus ring - position="sticky": in the flow, sticky top-0 below dialogs and drawers (z-40); opaque also without solid (the tint mixed onto the page colour) - React Native: solid (no sticky) - Parity cases, stories Solid and Sticky (Native: Solid), AI docs Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
The fallback for a TabsContent outside Tabs was {}, so lazyMount and
unmountOnExit did not exist on its type (vue-tsc in CI).
Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
…ticky story The story's scroll container has no focusable content, so keyboard users could not scroll it (axe: scrollable-region-focusable). Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
…ea in Tabs stories Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three gaps found in the DMJ app.
Textarea
autoResizemounted hidden (vue, react – patch): in an inactive tab or a closed accordion it measuredscrollHeight0 and stayed one line high. A measurement of 0 now sets no height, and aResizeObservermeasures again when the textarea gets a width or its width changes. Story Textarea in Tabs, browser test.Tabs
lazyMountremoved the initial panel (vue – patch): Ark's Vue presence never marks the panel that is open on mount as "was present", solazyMountalone removed it when its tab was left. The VueTabsContentnow mounts the panels itself with Ark's rules; behaviour test for lazyMount / + unmountOnExit / neither in Vue and React (red for Vue without the fix; React was right).Banner
solidandposition="sticky"(recipes, css, vue, react, native – minor): opaque fill in the variant's colour with its on-colour; sticky stays in the flow at the top edge (z-40, opaque also withoutsolid). Native getssolid. Parity cases, stories Solid / Sticky, AI docs.Tested locally (memory-limited, targeted): parity tests for Banner, Textarea and Tabs, MCP docs check, ESLint on the changed files. Full suites run in CI.